define (require, exports, module) ->
  # 基础服务
  base_api = require 'mods/api/base_api'
  # 定义组件
  module.exports =

    # 退出登录
    doLoginOut: () ->
      url = "/logout"
      return base_api.getRequest url

    # 获取搜索结果
    getSearchList: (params) ->
      url = '/search?q=' + params.q + '&pageNum=' + params.pageNum
      return base_api.getRequest url